﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

using eSYSU.Business;

public partial class ActivityDetail : System.Web.UI.Page
{
    public DataTable acti;  //用于绑定到页面的数据表

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["ID"] != null)
            {
                GetActivityDetail(Request.QueryString["ID"].ToString());
            }
            Page.DataBind();
        }
    }

    //初始化页面并填充数据
    protected void GetActivityDetail(string activityId)
    {
        acti = ActivityService.GetActivities(Convert.ToInt32(Request["ID"]));
    }
}